<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
    <%@taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link href="/resource/css/bootstrap.css" rel="stylesheet">
<script type="text/javascript" src="/resource/js/jquery-3.2.1.js"></script>
<script type="text/javascript" src="/resource/js/bootstrap.js"></script>
</head>
<body>
	<table class="table table-bordered table-hover">
		 <tr>
		    <td>编号</td>
		    <td>姓名</td>
		    <td>性别</td>
		    <td>图片</td>
		    <td>生日</td>
		    <td>爱好</td>
		    <td>创建时间</td>
		    <td>修改时间</td>
		    <td>操作</td>
		   </tr>
    	<c:forEach items="${info.list}" var="stu">
    		<tr>
    			<td>${stu.sid}</td>
    			<td>${stu.sname}</td>
    			<td>${stu.sex==1?'男':'女'}</td>
    			<td>${stu.pic}</td>
    			<td><fmt:formatDate value="${stu.birthday}" pattern="yyyy-MM-dd" /> </td>
    			<td>${stu.hname}</td>
    			<td><fmt:formatDate value="${stu.created}" pattern="yyyy-MM-dd" /></td>
    			<td><fmt:formatDate value="${stu.updated}" pattern="yyyy-MM-dd" /></td>
    			
    		</tr>
    	</c:forEach>
	</table>
</body>
</html>